package com.hsp.demo_01;

public class Demo_14 {
    public static void main(String[] args) {

        /**
         *          *
         *         ***
         *        *****
         *       *******
         *      *********
         *       *******
         *        *****
         *         ***
         *          *
         */
        int result = 5;
        for(int i = 1; i <= result; i++){
            for(int j = 1; j <= result - i; j++){
                System.out.print(" ");
            }
            for(int j = 1; j <= 2 * i -1; j++){
                System.out.print("*");
            }
            System.out.println();
        }
        for(int i = 1; i <= result - 1; i++){
            for(int j = 1; j <= i; j++){
                System.out.print(" ");
            }
            for(int j = 1; j <= 2 * (result - i) - 1; j++){
                System.out.print("*");
            }
            System.out.println();
        }

    }
}
